<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>打印借货出库单内容</title>
    <%= stylesheet_link_tag "/stylesheets/print.css" %>
    <style type="text/css">
      .table{border-collapse:collapse; font-size:13px; height:24px; line-height:24px;}
      .table tr td{border:solid 1px;}
    </style>
  </head>
  <body>
    <table width="700" class="table">
      <thead>
        <tr>
          <td width="85" style="text-align:center">商品编号</td>
          <td width="150" style="text-align:center">商品名称</td>
          <td width="260" style="text-align:center">型号型号</td>
          <td width="50" style="text-align:center">单位</td>
          <td width="50" style="text-align:center">数量</td>
          <td width="70" style="text-align:center">单价</td>
          <td width="90" style="text-align:center">金额</td>
        </tr>
      </thead>
      <%@loanDeliveryDetails.each do |loanDeliveryDetail|%>
        <tr>
          <td > &nbsp;<%=loanDeliveryDetail.product.number%></td>
          <td > &nbsp;<%=loanDeliveryDetail.product.name.split(/:/)[0]%></td>
          <td > &nbsp;<%=loanDeliveryDetail.product.name.split(/:/)[1]%></td>
          <td >单位</td>
          <td ><div align="right"><%=loanDeliveryDetail.quantity%>&nbsp;</div> </td>
          <td ><div align="right"> &nbsp;&nbsp;</div> </td>
          <td ><div align="right"> &nbsp;&nbsp;</div> </td>
        </tr>
      <% end%>
      <tr>
        <td> </td>
        <td> </td>
        <td> </td>
        <td>总计:</td>
        <td> <div align="right"><%=@totalQuantity%>&nbsp;&nbsp;</div></td>
        <td> </td>
        <td><div align="right"> &nbsp;&nbsp;</div> </td>
      </tr>
    </table>
  </body>
</html>